<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="firstping.model.Customer"%>
<%
String title = (String) request.getAttribute("title");
String success = (String) request.getAttribute("success");
String description = (String) request.getAttribute("description");
String keywords = (String) request.getAttribute("keyword");
String[] check = (String[]) request.getAttribute("check");
String customer = (String) session.getAttribute("customer");
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="page" value="contact" />
</jsp:include>
<div id="mainpage">
    	<div id="maincontent">
        	<h1>Contact Firstping</h1>
            <div class="box-wrapper">
            <h3 class="contact"><%=(success!=null)?success:"If you have any questions, or comments and suggestions, please use the form below to contact us." %></h3>
                <div class="useraction">
                    <div class="register">
                        <form action="/contact" method="post">                        
                            <div class="textfield">
                                <label for="contact-name">Your name</label>
                                <%=(check[0] != null)?"<p style='color:red;'>"+check[0]+"</p>":"" %>
                                <input type="text" id="contact-name" name="name"/>
                            </div>
                            <div class="textfield">
                                <label for="contact-email">Your email</label>
                                <%=(check[1] != null)?"<p style='color:red;'>"+check[1]+"</p>":"" %>
                                <input type="text" id="contact-email" name="email"/>
                            </div>
                            <div class="textfield">
                                <label for="contact-message">Message</label>
                                <%=(check[2] != null)?"<p style='color:red;'>"+check[2]+"</p>":"" %>
                                <textarea id="contact-message" name="message"></textarea>
                            </div>
                            <div class="textfield">
                                <label>Captcha</label>
                                <%=(check[3] != null)?"<p style='color:red;'>"+check[3]+"</p>":"" %>
	                            <script>
						        	var RecaptchaOptions = { theme : 'clean' };
						  		</script>
								<%
									//6LdXmcISAAAAAHz6FsABghup-EayldUCiKQyDPAk //public
									//6LdXmcISAAAAANPIv5ykGg3LAlBMnUQHzy3-Kiqo //private
						          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6Lf59ccSAAAAAEM1gkWavS_8iUlhO7GF_Y5GXzts", "6Lf59ccSAAAAANK1ZHc5x_r4dfk6mZQTEJCvjFlo", false);
						          out.print(c.createRecaptchaHtml(null, null));
						        %>
						        
					        </div>
                            <button type="submit" class="button-style">Send</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
				
<jsp:include page="/layout/footer.jsp">
	<jsp:param name="language" value="1"/>
</jsp:include>	